Page({
  data: {
    account:'',
    inputValue6: '',
    status:null,
  },
  onInput6: function(e) {
    const app = getApp();
    app.globalData.allInputs = app.globalData.allInputs || {};
    app.globalData.allInputs.inputValue6 = e.detail.value;
    this.setData({
      inputValue6: e.detail.value
    });
  },
  onUnload() {
    const app = getApp();
    app.globalData.allInputs = app.globalData.allInputs || {};
    app.globalData.allInputs.inputValue6 = this.data.inputValue6;
  },
  prevPage() {
    wx.navigateBack({
      delta: 1
    });
  },
  nextPage() {
    wx.navigateTo({
      url: '/pages/page9/page9?account='+this.data.account+'&status='+this.data.status
    });
  },
  onLoad: function (options) {
    this.setData({
      account:options.account
    })
    // console.log("page8:");
    // console.log(this.data.account)
    wx.cloud.callFunction({
      name:"Check_manage",
      config: {
        env: this.data.envId
      },
      data:{
        type:"get_apllyinfo",
        data:{
          account:this.data.account,
        }
      },
      success:res=>{
        if(!res.result.message.application_status)
        this.setData({
          inputValue6:res.result.message.mixed_ability,
          status:res.result.message.check_status
        })
      },
      fail:res=>{
        wx.showToast({
          title: '用户信息获取失败',
          icon:"none"
        })
      }
    });
  },
  onReady() {
    // 页面初次渲染完成时的逻辑
  },
  onShow() {
    // 页面显示时的逻辑
  },
  onHide() {
    // 页面隐藏时的逻辑
  },
  onPullDownRefresh() {
    // 用户下拉刷新时的逻辑
  },
  onReachBottom() {
    // 页面上拉触底时的逻辑
  },
  onShareAppMessage() {
    // 用户点击分享时的逻辑
  }
});